
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@taglib uri="http://java.fckeditor.net" prefix="FCK" %>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<div>

   <p align="right"><a href="salecar.do?action=listFillterM" >Car Model</a>||
        <a href="salecar.do?action=listFillterT" >Car Type</a>||
        <a href="#" >Income range of customerst</a>||
        <a href="salecar.do?action=listFillterP" >Rental Cost</a>||
        <a href="salecar.do?action=listFillterA" >Air-conditioned cars</a> ||
        <a href="salecar.do?action=listFillterS" >Season</a> &emsp;&emsp;&emsp;

    </p>

    <table width="100%" border="1">

        <tr bgcolor="#F0F0F0" >

            <td><font size="1">CarName</font></td>
            <td><font size="1">AirCondition</font></td>
            <td><font size="1">ModeName</font></td>
            <td><font size="1">TypeName</font></td>

            <td><font size="1">Price</font></td>
            <td><font size="1">Total</font></td>




        </tr>
        <logic:present name="listFill">
            <logic:iterate id="list" name="listFill">
                <tr bgcolor="#F0F0F0" >

                    <td><font size="1"><bean:write name="list" property="carName"/></font></td>
                    <td><font size="1"><bean:write name="list" property="tam"/></font></td>
                    <td><font size="1"><bean:write name="list" property="modeName"/></font></td>
                    <td><font size="1"><bean:write name="list" property="typeName"/></font></td>
                    <td><font size="1"><bean:write name="list" property="price"/></font></td>
                    <td><font size="1"><bean:write name="list" property="total"/></font></td>





                </tr>
            </logic:iterate>
        </logic:present>
    </table>
    <form action="salecar.do?action=TotalS" method="post">
        <table>
            <tr bgcolor="#F0F0F0" >
                <td><b><font size="4" color="blue">Season </font></b></td>
                <td><select name="season"><logic:present name="listSeason">
                            <logic:iterate id="listS" name="listSeason">

                                <option value="<bean:write name="listS" property="seasinId"/>"> <bean:write name="listS" property="seasonName" /></option>

                            </logic:iterate>
                        </logic:present>
                    </select></td>
                <td><input type="submit" name="action" value="Total"/></td>

                <td></td>
                <td></td>
                <td></td>
                <td> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<font size="4" color="blue"><b>${sum} USD</b></font></td>

            </tr>
        </table>
    </form>

</div>